﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/AdminMasterPage.master" AutoEventWireup="true" CodeFile="xoa-sua-bai-viet.aspx.cs" Inherits="Admin_xoa_sua_bai_viet" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        onrowdeleting="GridView1_RowDeleting" DataKeyNames="BaiVietID">
        <Columns>
            <asp:BoundField DataField="TieuDe" HeaderText="Bài Viết" />
            <asp:BoundField DataField="UserEmail" HeaderText="User" />
            <asp:BoundField DataField="NgayDang" HeaderText="Ngày Đăng" />
            <asp:HyperLinkField DataNavigateUrlFields="BaiVietID" HeaderText="Sửa Bài Viết" 
                DataNavigateUrlFormatString="Sua-bai-viet.aspx?BaiVietID={0}" Text="Sửa" />
            <asp:CommandField ButtonType="Button" HeaderText="Xóa Bài Viết" 
                ShowDeleteButton="True" />
        </Columns>
    </asp:GridView>
</asp:Content>

